import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

// 引入vant
import Vant from "vant";
import "vant/lib/index.css";
Vue.use(Vant);

// 引入Dialog弹出框
import { Dialog } from "vant";
Vue.use(Dialog);

// 引入mintui
import MintUI from "mint-ui";
import "mint-ui/lib/style.css";
Vue.use(MintUI);

//引入高德地图
import AMap from "vue-amap";
Vue.use(AMap);

// 初始化vue-amap
AMap.initAMapApiLoader({
  // 高德key
  key: "8c3e8a580fb2c4770f27e2a22e19db61",
  // 插件集合 （插件按需引入）
  plugin: ["CitySearch"],
  v: "1.4.4",
});

// 引入axios
import "./utils/axios";

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
